//
//  lcbImage.h
//  lcb
//
//  Created by yiban on 16/6/12.
//  Copyright © 2016年 lcb. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIkit.h>
#import "LcbSingleton.h"

@interface LcbImage : NSObject
LcbSingletonH(lcbImage)

/*!
 @method
 @abstract 根据url字符串获取相应url缓存的图片
 @code
    [lcbImage imageFromMemoryCacheForUrlStr:@""];
 @endcode
 @param urlString 图片网络地址
 @result url对应在本地缓存的图片
 */
+ (UIImage *)imageFromDiskCacheForUrlStr:(NSString *)urlString;

/*!
 @method
 @abstract 获取缓存文件的总共大小
 @code
    [lcbImage getCacheSize:@""];
 @endcode
 @result 本地缓存文件的大小
 */
+ (NSUInteger)getCacheSize;
/*!
 @method
 @abstract 删除指定图片
 @code
 [lcbImage removeImageForKey:@""];
 @endcode
 */
+ (void)removeImageForKey:(NSString*)key;
/*!
 @method
 @abstract 保存指定图片
 @code
 [lcbImage storeImage:(UIImage*)image forKey:(NSString*)key];
 @endcode
 */
+ (void)storeImage:(UIImage*)image forKey:(NSString*)key;
/*!
 @method
 @abstract 清空内存
 @code
 [lcbImage clearMemory];
 @endcode
 */
+ (void)clearMemory;
/*!
 @method
 @abstract 清空磁盘
 @code
 [lcbImage clearDisk];
 @endcode
 */
+ (void)clearDisk;

@end
